import React from 'react'
import { Router, Route, Switch } from 'react-router-dom'
import history from '../../../history';

import List from './list'
import Detail from './detail'
import EditMsg from './edit'

import './index.less'

export default () => (
    <Router history={history}>
        <Switch>
            <Route exact path="/contacts" component={List}/>
            <Route path="/contacts/detail/:id" component={Detail}/>
            <Route path="/contacts/msg/:to_user_id" component={EditMsg}/>
            
        </Switch>
    </Router>
);